package com.sdy.dcsb.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sdy.dcsb.biz.mapper.EsbSystemMapper;
import com.sdy.dcsb.biz.model.EsbSystem;
import com.sdy.dcsb.biz.model.EsbSystemVo;
import com.sdy.dcsb.biz.service.EsbSystemService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.function.Function;

/**
 * @program: sdy-dcsb
 * @author: Lx
 * @create: 2019-09-25
 */
@Slf4j
@Service
public class EsbSystemServiceImpl extends ServiceImpl<EsbSystemMapper,EsbSystem> implements EsbSystemService {
    @Autowired
    private EsbSystemMapper esbSystemMapper;

    @Override
    public List<EsbSystem> selectAll() {
        List<EsbSystem> esbSystemList = getBaseMapper().selectAllSystem();
        return esbSystemList;
    }

    @Override
    public List<EsbSystemVo> queryCountSystemByIdMess(Integer id, String systemName) {
        return esbSystemMapper.queryCountSystemByIdMess(id,systemName);
    }

    @Override
    public List<EsbSystemVo> queryAllSystemByIdMess(Integer id, Integer current, Integer size, String systemName) {
        return esbSystemMapper.queryAllSystemByIdMess(id,current,size,systemName);
    }

    @Override
    public List<EsbSystemVo> queryCountSystemById(Integer id) {
        return esbSystemMapper.queryCountSystemById(id);
    }

    @Override
    public List<EsbSystemVo> queryAllSystemById(Integer id, Integer current, Integer size) {
        return esbSystemMapper.queryAllSystemById(id,current,size);
    }



}
